<?php

namespace FactoryMethod\Factory;

include_once "IFactory.php";
include_once "LeiFeng.php";
include_once "Entity/Undergraduate.php";

use FactoryMethod\LeiFeng;
use FactoryMethod\IFactory;
use FactoryMethod\Entity\Undergraduate;
/** 大学生工厂实体 */
class UndergraduateFactory implements IFactory
{
    /** 实现学习雷锋实体对象的方法 */
    public function createLeiFeng(): LeiFeng
    {
        return new Undergraduate();
    }
}